package com.ybe.handler.exchange;

import com.sun.net.httpserver.HttpExchange;

import java.io.IOException;

/**
 * Created by ybe on 2017/05/05.
 * PathHandler 路径处理接口
 */
public interface HttpExchangeHandler {

    /**
     * 路径处理
     */
    public void handler(HttpExchange exchange) throws IOException;

    /**
     * 路径是否匹配
     * @param path
     * @return
     */
    boolean isMatch(HttpExchange exchange);
}
